package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/PurchaseCodeInfo.class */
public class PurchaseCodeInfo {
    @ExcelIgnore
    private Integer id;
    @ExcelProperty(value = {"二维码编号"}, index = 3)
    @ApiModelProperty("二维码编号")
    private String qrCode;
    @ExcelProperty(value = {"资产名称"}, index = 0)
    @ApiModelProperty("资产名称")
    private String name;
    @ExcelProperty(value = {"存放地点"}, index = 1)
    @ApiModelProperty("存放地点")
    private String address;
    @ExcelProperty(value = {"管理单位"}, index = 2)
    @ApiModelProperty("管理单位")
    private String managementUnit;
    @ExcelIgnore
    @ApiModelProperty("purchase_code_generated主键")
    private Integer purchaseCodeGeneratedId;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setManagementUnit(String managementUnit) {
        this.managementUnit = managementUnit;
    }

    public void setPurchaseCodeGeneratedId(Integer purchaseCodeGeneratedId) {
        this.purchaseCodeGeneratedId = purchaseCodeGeneratedId;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof PurchaseCodeInfo)) {
            return false;
        }
        PurchaseCodeInfo other = (PurchaseCodeInfo) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();
        Object other$id = other.getId();
        if (this$id == null) {
            if (other$id != null) {
                return false;
            }
        } else if (!this$id.equals(other$id)) {
            return false;
        }
        Object this$qrCode = getQrCode();
        Object other$qrCode = other.getQrCode();
        if (this$qrCode == null) {
            if (other$qrCode != null) {
                return false;
            }
        } else if (!this$qrCode.equals(other$qrCode)) {
            return false;
        }
        Object this$name = getName();
        Object other$name = other.getName();
        if (this$name == null) {
            if (other$name != null) {
                return false;
            }
        } else if (!this$name.equals(other$name)) {
            return false;
        }
        Object this$address = getAddress();
        Object other$address = other.getAddress();
        if (this$address == null) {
            if (other$address != null) {
                return false;
            }
        } else if (!this$address.equals(other$address)) {
            return false;
        }
        Object this$managementUnit = getManagementUnit();
        Object other$managementUnit = other.getManagementUnit();
        if (this$managementUnit == null) {
            if (other$managementUnit != null) {
                return false;
            }
        } else if (!this$managementUnit.equals(other$managementUnit)) {
            return false;
        }
        Object this$purchaseCodeGeneratedId = getPurchaseCodeGeneratedId();
        Object other$purchaseCodeGeneratedId = other.getPurchaseCodeGeneratedId();
        return this$purchaseCodeGeneratedId == null ? other$purchaseCodeGeneratedId == null : this$purchaseCodeGeneratedId.equals(other$purchaseCodeGeneratedId);
    }

    protected boolean canEqual(Object other) {
        return other instanceof PurchaseCodeInfo;
    }

    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $qrCode = getQrCode();
        int result2 = (result * 59) + ($qrCode == null ? 43 : $qrCode.hashCode());
        Object $name = getName();
        int result3 = (result2 * 59) + ($name == null ? 43 : $name.hashCode());
        Object $address = getAddress();
        int result4 = (result3 * 59) + ($address == null ? 43 : $address.hashCode());
        Object $managementUnit = getManagementUnit();
        int result5 = (result4 * 59) + ($managementUnit == null ? 43 : $managementUnit.hashCode());
        Object $purchaseCodeGeneratedId = getPurchaseCodeGeneratedId();
        return (result5 * 59) + ($purchaseCodeGeneratedId == null ? 43 : $purchaseCodeGeneratedId.hashCode());
    }

    public String toString() {
        return "PurchaseCodeInfo(id=" + getId() + ", qrCode=" + getQrCode() + ", name=" + getName() + ", address=" + getAddress() + ", managementUnit=" + getManagementUnit() + ", purchaseCodeGeneratedId=" + getPurchaseCodeGeneratedId() + PoiElUtil.RIGHT_BRACKET;
    }

    public Integer getId() {
        return this.id;
    }

    public String getQrCode() {
        return this.qrCode;
    }

    public String getName() {
        return this.name;
    }

    public String getAddress() {
        return this.address;
    }

    public String getManagementUnit() {
        return this.managementUnit;
    }

    public Integer getPurchaseCodeGeneratedId() {
        return this.purchaseCodeGeneratedId;
    }
}